package com.nbsaas.boot.app.rest.convert;

import com.nbsaas.boot.app.data.entity.App;
import com.nbsaas.boot.app.api.domain.response.AppResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* -实体对象转化成响应对象
*/

public class AppResponseConvert  implements Converter<AppResponse,App> {

    @Override
    public AppResponse convert(App source) {
        AppResponse  result = new  AppResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

